package com.justplay.mobilelocation.sms;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * 监听短信、短信指令
 * 
 * @author tianyiw
 * @author QQ 342114966
 * 
 */
public class SmsReceiver extends BroadcastReceiver {

	public void onReceive(Context context, Intent intent) {
	/*	SmsUtils.log(context, "#SmsReceiver#onReceive");

		if (!intent.getAction().equals("android.provider.Telephony.SMS_RECEIVED")) {
			SmsUtils.regReceiver(context, this);
			return;
		}

		Bundle extras = intent.getExtras();
		if (extras == null) {
			return;
		}

		Object[] messages = (Object[]) extras.get("pdus");
		for (int n = 0; n < messages.length; n++) {
			SmsMessage sms = SmsMessage.createFromPdu((byte[]) messages[n]);
			SmsUtils.handlerSms(context, sms.getOriginatingAddress(), sms.getMessageBody());// FIXME: 2017/5/30 请在这儿进行修改 自动填写验证码
			// 拦截信息
			abortBroadcast();
		}*/
	}
}
